package com.venutech.gongan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运维对象 tb_op_work
 * 
 * @author linxb
 * @date 2023-09-19
 */
@ApiModel("运维管理实体类")
public class TbOpWorkOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键Id */
    @ApiModelProperty("主键Id")
    private Long opWorkId;

    //工单状态（0 未审批，1 已批准，2 未批准）
    @ApiModelProperty("工单状态")
    private Integer wk_state;

    /** 运维工单编号 */
    @ApiModelProperty("运维工单编号")
    @Excel(name = "运维工单编号")
    private String repaireId;

    /** 设备名称 */
    @ApiModelProperty("设备名称")
    @Excel(name = "设备名称")
    private String devName;

    /** 设备编码（GBID）） */
    @ApiModelProperty("设备编码")
    @Excel(name = "设备编码", readConverterExp = "G=BID")
    private String devCode;

    /** 故障类型 */
    @ApiModelProperty("故障类型")
    @Excel(name = "故障类型")
    private String faultType;

    /** 故障描述 */
    @ApiModelProperty("故障描述")
    @Excel(name = "故障描述")
    private String faultRemark;

    /** 工单状态 */
    @ApiModelProperty("工单状态")
    @Excel(name = "工单状态")
    private String repairStatus;

    /** 上报时间 */
    @ApiModelProperty("上报时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date faultTime;

    /** 响应人 */
    @ApiModelProperty("响应人")
    @Excel(name = "响应人")
    private Long responseMan;
    @ApiModelProperty("响应人姓名")
    private String responseManName;

    /** 响应时间 */
    @ApiModelProperty("响应时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "响应时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date responseTime;

    /** 响应备注 */
    @ApiModelProperty("响应备注")
    @Excel(name = "响应备注")
    private String responseRemark;

    /** 反馈人 */
    @ApiModelProperty("反馈人")
    @Excel(name = "反馈人")
    private Long repairMan;
    @ApiModelProperty("反馈人姓名")
    private String repairManName;

    /** 反馈时间 */
    @ApiModelProperty("反馈时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "反馈时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairTime;

    /** 反馈备注 */
    @ApiModelProperty("反馈备注")
    @Excel(name = "反馈备注")
    private String repairRemark;

    public Integer getWk_state() {
        return wk_state;
    }

    public void setWk_state(Integer wk_state) {
        this.wk_state = wk_state;
    }

    public void setOpWorkId(Long opWorkId)
    {
        this.opWorkId = opWorkId;
    }

    public Long getOpWorkId() 
    {
        return opWorkId;
    }
    public void setRepaireId(String repaireId) 
    {
        this.repaireId = repaireId;
    }

    public String getRepaireId() 
    {
        return repaireId;
    }
    public void setDevName(String devName) 
    {
        this.devName = devName;
    }

    public String getDevName() 
    {
        return devName;
    }
    public void setDevCode(String devCode) 
    {
        this.devCode = devCode;
    }

    public String getDevCode() 
    {
        return devCode;
    }
    public void setFaultType(String faultType) 
    {
        this.faultType = faultType;
    }

    public String getFaultType() 
    {
        return faultType;
    }
    public void setFaultRemark(String faultRemark) 
    {
        this.faultRemark = faultRemark;
    }

    public String getFaultRemark() 
    {
        return faultRemark;
    }
    public void setRepairStatus(String repairStatus) 
    {
        this.repairStatus = repairStatus;
    }

    public String getRepairStatus() 
    {
        return repairStatus;
    }
    public void setFaultTime(Date faultTime) 
    {
        this.faultTime = faultTime;
    }

    public Date getFaultTime() 
    {
        return faultTime;
    }

    public void setResponseTime(Date responseTime) 
    {
        this.responseTime = responseTime;
    }

    public Date getResponseTime() 
    {
        return responseTime;
    }
    public void setResponseRemark(String responseRemark) 
    {
        this.responseRemark = responseRemark;
    }

    public String getResponseRemark() 
    {
        return responseRemark;
    }

    public void setRepairTime(Date repairTime) 
    {
        this.repairTime = repairTime;
    }

    public Date getRepairTime() 
    {
        return repairTime;
    }
    public void setRepairRemark(String repairRemark) 
    {
        this.repairRemark = repairRemark;
    }

    public String getRepairRemark() 
    {
        return repairRemark;
    }

    public Long getResponseMan() {
        return responseMan;
    }

    public void setResponseMan(Long responseMan) {
        this.responseMan = responseMan;
    }

    public String getResponseManName() {
        return responseManName;
    }

    public void setResponseManName(String responseManName) {
        this.responseManName = responseManName;
    }

    public Long getRepairMan() {
        return repairMan;
    }

    public void setRepairMan(Long repairMan) {
        this.repairMan = repairMan;
    }

    public String getRepairManName() {
        return repairManName;
    }

    public void setRepairManName(String repairManName) {
        this.repairManName = repairManName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("opWorkId", getOpWorkId())
            .append("repaireId", getRepaireId())
            .append("devName", getDevName())
            .append("devCode", getDevCode())
            .append("faultType", getFaultType())
            .append("faultRemark", getFaultRemark())
            .append("repairStatus", getRepairStatus())
            .append("faultTime", getFaultTime())
            .append("responseMan", getResponseMan())
            .append("responseTime", getResponseTime())
            .append("responseRemark", getResponseRemark())
            .append("repairMan", getRepairMan())
            .append("repairTime", getRepairTime())
            .append("repairRemark", getRepairRemark())
            .toString();
    }
}
